package org.crc.myvhrb.controller.config;

import org.crc.myvhrb.model.Menu;
import org.crc.myvhrb.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * CRC
 * 2021/8/3
 */
@RestController
@RequestMapping("/system/config")
public  class SystemConfigController {

    @Autowired
    MenuService menuService;


    @GetMapping("/menu")
    public List<Menu> getMenusByHrId(){
        return menuService.getMenusByHrId();
    }



}
